package com.deity.news.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.opensymphony.webwork.ServletActionContext;
//import com.opensymphony.xwork.ActionContext;
import com.deity.news.util.Constant;
import com.deity.news.util.CookieManager;
import com.deity.news.util.MyActionSupport;

public class Logout extends MyActionSupport {

	public String execute() {
//		ActionContext.getContext().getSession().clear();
		HttpServletRequest req = ServletActionContext.getRequest();
		HttpServletResponse res = ServletActionContext.getResponse();
		CookieManager.delCookie(req,res,Constant.SESSION_USER);
		return SUCCESS;
	}
}
